#!/usr/bin/env python3

import requests
import re

def find(url):
    response = requests.get(url)
    if response.ok:
        html = response.text
    else:
        exit(1)

    text = re.findall(r'(Python .*)</a>.*\n.*date..(.*)</span',html)

    for number ,date in text:
        print('%s,%s' %(number,date))
    f=open('/tmp/123','w')
    f.write(str(text))
    f.close()


a = 'https://www.python.org/downloads'
find(a)
